package org.pupil.consumer.web;


import org.pupil.annotation.RpcReference;
import org.pupil.common.constants.LoadBalance;
import org.pupil.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: pupil
 * @Date: 2024/07/22 下午 6:00
 */
@RestController
@RequestMapping
public class Web {

    @RpcReference
    HelloService helloService;

    @GetMapping("/hello/{key}")
    public Object hello(@PathVariable("key")String arg){
        return helloService.hello(arg);
    }
}
